package com.ibeeking.found.uaa.c.service;

import com.ibeeking.found.uaa.c.model.WxSmsCodeModel;
import com.ibeeking.found.uaa.c.model.ClientUserDetails;
import com.ibeeking.found.uaa.c.model.WxAppletModel;
import org.springframework.security.core.userdetails.UserDetailsService;

/**
 * @Author ibeeking
 */
public interface IClientUserDetailsService extends UserDetailsService {

    /**
     * 手机号登录
     *
     * @return
     */
    ClientUserDetails loadUserByPhoneAndSmsCode(WxSmsCodeModel wxSmsCodeModel);

    /**
     * 微信小程序登录
     *
     * @param wxAppletModel
     * @return
     */
    ClientUserDetails wxAppletsLogin(WxAppletModel wxAppletModel);
}
